require("../../assets/css/basic.less");
require("../../assets/css/normalize.css");
require("../../assets/css/property.css");
require("../../assets/css/reset.css");
require("../../assets/fonts/font-icon/iconfont.css");
require("../sporting_stop/sporting-stop.less");

const dom = require("../../libs/dom.js");
const axios = require("../../libs/axios.js");

document.addEventListener("DOMContentLoaded", function () {
	axios.get("/api/exercise").then((res) => {
		console.log(res.data.data.days);
		let obj = res.data.data.days.pop();

		dom.get(".num").textContent = obj.sumMeter;
	});
});
